package com.k.Model;

/**
 * SRoleactionId entity. @author MyEclipse Persistence Tools
 */

public class SRoleactionId implements java.io.Serializable {

	// Fields

	private String roleid;
	private String actionid;
	private Integer id;

	// Constructors

	/** default constructor */
	public SRoleactionId() {
	}

	/** full constructor */
	public SRoleactionId(String roleid, String actionid, Integer id) {
		this.roleid = roleid;
		this.actionid = actionid;
		this.id = id;
	}

	// Property accessors

	public String getRoleid() {
		return this.roleid;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}

	public String getActionid() {
		return this.actionid;
	}

	public void setActionid(String actionid) {
		this.actionid = actionid;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SRoleactionId))
			return false;
		SRoleactionId castOther = (SRoleactionId) other;

		return ((this.getRoleid() == castOther.getRoleid()) || (this
				.getRoleid() != null
				&& castOther.getRoleid() != null && this.getRoleid().equals(
				castOther.getRoleid())))
				&& ((this.getActionid() == castOther.getActionid()) || (this
						.getActionid() != null
						&& castOther.getActionid() != null && this
						.getActionid().equals(castOther.getActionid())))
				&& ((this.getId() == castOther.getId()) || (this.getId() != null
						&& castOther.getId() != null && this.getId().equals(
						castOther.getId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getRoleid() == null ? 0 : this.getRoleid().hashCode());
		result = 37 * result
				+ (getActionid() == null ? 0 : this.getActionid().hashCode());
		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		return result;
	}

}